package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * GlryFddbr generated by hbm2java
 */
@Entity
@Table(name = "glry_fddbr")
public class GlryFddbr implements java.io.Serializable
{

    private Long id;
    private int version;
    private Glry glry;
    private String username;
    private String operation;
    private Date optdate;
    private Short gljcnl;
    private Short hyxssp;
    private Short syjqx;
    private Short tdys;
    private Short xyys;
    private String jcjl;
    private String bz;
    private Set<Glry> glries = new HashSet<Glry>( 0 );

    public GlryFddbr()
    {
    }

    public GlryFddbr( Long id )
    {
        this.id = id;
    }

    public GlryFddbr( Long id,
                      Glry glry,
                      String username,
                      String operation,
                      Date optdate,
                      Short gljcnl,
                      Short hyxssp,
                      Short syjqx,
                      Short tdys,
                      Short xyys,
                      String jcjl,
                      String bz,
                      Set<Glry> glries )
    {
        this.id = id;
        this.glry = glry;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.gljcnl = gljcnl;
        this.hyxssp = hyxssp;
        this.syjqx = syjqx;
        this.tdys = tdys;
        this.xyys = xyys;
        this.jcjl = jcjl;
        this.bz = bz;
        this.glries = glries;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "glr_ID")
    public Glry getGlry()
    {
        return this.glry;
    }

    public void setGlry( Glry glry )
    {
        this.glry = glry;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "gljcnl")
    public Short getGljcnl()
    {
        return this.gljcnl;
    }

    public void setGljcnl( Short gljcnl )
    {
        this.gljcnl = gljcnl;
    }

    @Column(name = "hyxssp")
    public Short getHyxssp()
    {
        return this.hyxssp;
    }

    public void setHyxssp( Short hyxssp )
    {
        this.hyxssp = hyxssp;
    }

    @Column(name = "syjqx")
    public Short getSyjqx()
    {
        return this.syjqx;
    }

    public void setSyjqx( Short syjqx )
    {
        this.syjqx = syjqx;
    }

    @Column(name = "tdys")
    public Short getTdys()
    {
        return this.tdys;
    }

    public void setTdys( Short tdys )
    {
        this.tdys = tdys;
    }

    @Column(name = "xyys")
    public Short getXyys()
    {
        return this.xyys;
    }

    public void setXyys( Short xyys )
    {
        this.xyys = xyys;
    }

    @Column(name = "jcjl", length = 100)
    public String getJcjl()
    {
        return this.jcjl;
    }

    public void setJcjl( String jcjl )
    {
        this.jcjl = jcjl;
    }

    @Column(name = "bz", length = 100)
    public String getBz()
    {
        return this.bz;
    }

    public void setBz( String bz )
    {
        this.bz = bz;
    }

    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "glryFddbr")
    public Set<Glry> getGlries()
    {
        return this.glries;
    }

    public void setGlries( Set<Glry> glries )
    {
        this.glries = glries;
    }

}
